
public class Motorbikes extends Vehicle{
	private int engineCapacity;
	
	public Motorbikes(String rego, String make, String model, String ownername,
			  String address, Boolean status, int engineCapacity)
	{
		super(rego, make, model, ownername, address, status);
		this.engineCapacity = engineCapacity;
	}
	public Motorbikes(String rego, String make, String model, String ownername,
			  String address, String status, int engineCapacity)
	{
		super(rego, make, model, ownername, address, status);
		this.engineCapacity = engineCapacity;
	}
	public String toString() {
		return"Commercial [regoNumber=" + regNum + ", make=" + makeDescription
				 + ", description=" + modelDescription + ", ownerName=" + regOwnerName
				 + ", ownerAddress=" + regOwnerAdderss + ", registered="
				 + regStatus + "]";
	}
	public double calculateRego() {
		double fee = 0.31 * engineCapacity + (double)10 * 135/100;
		return fee;
	}
	public int GetengineCapacity() {
		return engineCapacity;
	}
}
